package com.steam.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * [STRATO MyBatis Generator]
 * Table: orders
@mbggenerated do_not_delete_during_merge 2017-02-24 10:59:30
 */
public class Orders implements Serializable {
    /**
     * Column: orders.id
    @mbggenerated 2017-02-24 10:59:30
     */
    private Integer id;

    /**
     *   托运方的唯一的用户id,即货主的id
     * Column: orders.shipperid
    @mbggenerated 2017-02-24 10:59:30
     */
    private Integer shipperid;

    /**
     *   托运方的名字,即货主的名字
     * Column: orders.shipper
    @mbggenerated 2017-02-24 10:59:30
     */
    private String shipper;

    /**
     *   承运方的唯一的用户id,即车主的id
     * Column: orders.carrierid
    @mbggenerated 2017-02-24 10:59:30
     */
    private Integer carrierid;

    /**
     *   承运方的名字,即车主的名字
     * Column: orders.carrier
    @mbggenerated 2017-02-24 10:59:30
     */
    private String carrier;

    /**
     *   发货地址
     * Column: orders.deliveraddress
    @mbggenerated 2017-02-24 10:59:30
     */
    private String deliveraddress;

    /**
     *   到货地址
     * Column: orders.arriveaddress
    @mbggenerated 2017-02-24 10:59:30
     */
    private String arriveaddress;

    /**
     *   货物名称
     * Column: orders.goodsname
    @mbggenerated 2017-02-24 10:59:30
     */
    private String goodsname;

    /**
     *   创建时间
     * Column: orders.createtime
    @mbggenerated 2017-02-24 10:59:30
     */
    private Date createtime;

    /**
     *   接受时间(车主接收货主订单的时间)
     * Column: orders.accepttime
    @mbggenerated 2017-02-24 10:59:30
     */
    private Date accepttime;

    /**
     *   确认时间(货主确定已经完成的时间)
     * Column: orders.confirmtime
    @mbggenerated 2017-02-24 10:59:30
     */
    private Date confirmtime;

    /**
     *   完成时间(车主确定完成的时间)
     * Column: orders.finishtime
    @mbggenerated 2017-02-24 10:59:30
     */
    private Date finishtime;

    /**
     *   运费金额
     * Column: orders.freight
    @mbggenerated 2017-02-24 10:59:30
     */
    private Double freight;

    /**
     *   支付方式
     * Column: orders.paytype
    @mbggenerated 2017-02-24 10:59:30
     */
    private String paytype;

    /**
     *   附加条款
     * Column: orders.additional
    @mbggenerated 2017-02-24 10:59:30
     */
    private String additional;

    /**
     *   对应着发布信息的唯一id,即货源的唯一id
     * Column: orders.logisticsid
    @mbggenerated 2017-02-24 10:59:30
     */
    private Integer logisticsid;

    /**
     *   谁的订单，对应用户表的唯一id
     * Column: orders.userid
    @mbggenerated 2017-02-24 10:59:30
     */
    private Integer userid;

    /**
     *   订单的状态,0代表请求订单,1代表该订单已经生效,2代表已经完成
     * Column: orders.state
    @mbggenerated 2017-02-24 10:59:30
     */
    private String state;

    /**
     *   谁的订单的评分,车主的评分
     * Column: orders.userscore
    @mbggenerated 2017-02-24 10:59:30
     */
    private Integer userscore;

    /**
     *   发布货源的人的评分,也就是货主的评分
     * Column: orders.logisticsscore
    @mbggenerated 2017-02-24 10:59:30
     */
    private Integer logisticsscore;

    /**
     * Table: orders
    @mbggenerated 2017-02-24 10:59:30
     */
    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getShipperid() {
        return shipperid;
    }

    public void setShipperid(Integer shipperid) {
        this.shipperid = shipperid;
    }

    public String getShipper() {
        return shipper;
    }

    public void setShipper(String shipper) {
        this.shipper = shipper == null ? null : shipper.trim();
    }

    public Integer getCarrierid() {
        return carrierid;
    }

    public void setCarrierid(Integer carrierid) {
        this.carrierid = carrierid;
    }

    public String getCarrier() {
        return carrier;
    }

    public void setCarrier(String carrier) {
        this.carrier = carrier == null ? null : carrier.trim();
    }

    public String getDeliveraddress() {
        return deliveraddress;
    }

    public void setDeliveraddress(String deliveraddress) {
        this.deliveraddress = deliveraddress == null ? null : deliveraddress.trim();
    }

    public String getArriveaddress() {
        return arriveaddress;
    }

    public void setArriveaddress(String arriveaddress) {
        this.arriveaddress = arriveaddress == null ? null : arriveaddress.trim();
    }

    public String getGoodsname() {
        return goodsname;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname == null ? null : goodsname.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getAccepttime() {
        return accepttime;
    }

    public void setAccepttime(Date accepttime) {
        this.accepttime = accepttime;
    }

    public Date getConfirmtime() {
        return confirmtime;
    }

    public void setConfirmtime(Date confirmtime) {
        this.confirmtime = confirmtime;
    }

    public Date getFinishtime() {
        return finishtime;
    }

    public void setFinishtime(Date finishtime) {
        this.finishtime = finishtime;
    }

    public Double getFreight() {
        return freight;
    }

    public void setFreight(Double freight) {
        this.freight = freight;
    }

    public String getPaytype() {
        return paytype;
    }

    public void setPaytype(String paytype) {
        this.paytype = paytype == null ? null : paytype.trim();
    }

    public String getAdditional() {
        return additional;
    }

    public void setAdditional(String additional) {
        this.additional = additional == null ? null : additional.trim();
    }

    public Integer getLogisticsid() {
        return logisticsid;
    }

    public void setLogisticsid(Integer logisticsid) {
        this.logisticsid = logisticsid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state == null ? null : state.trim();
    }

    public Integer getUserscore() {
        return userscore;
    }

    public void setUserscore(Integer userscore) {
        this.userscore = userscore;
    }

    public Integer getLogisticsscore() {
        return logisticsscore;
    }

    public void setLogisticsscore(Integer logisticsscore) {
        this.logisticsscore = logisticsscore;
    }
}